package com.ewzj.bigdata.mvp.model.rspbean;

import android.os.Parcel;
import android.os.Parcelable;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class InfoBean implements MultiItemEntity, Parcelable {

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    /**
     * id : 2
     * go_url : http://finance.chinanews.com/house/2013/01-01/4451987.shtml
     * title : 郑州“房妹”母亲被曝有两个户口记者查证属实

     * tags :
     * cate_name : 0
     * type_id : 1
     * pics : []
     * thumb :
     * video :
     * sources : 新京报
     * visit : 0
     * comment : 0
     */

    private String id;
    private String groupId;
    private String go_url;
    private String title;
    private String tags;
    private String cate_name;
    private int type_id;
    private int cont_type;
    private String thumb;
    private String video;
    private String sources;
    private String visit;
    private String comment;
    private String summary;
    private String create_time;
    private String news_type;
    private String duration;
    private String topic_sign;
    private int is_collect;
    //    1自己，0不是自己 -1跳网页
    private int is_self;
    private String three_url;

    public String getTopic_sign() {
        return topic_sign;
    }

    public void setTopic_sign(String topic_sign) {
        this.topic_sign = topic_sign;
    }

    public String getNews_type() {
        return news_type;
    }

    public void setNews_type(String news_type) {
        this.news_type = news_type;
    }

    public static Creator<InfoBean> getCREATOR() {
        return CREATOR;
    }

    public int getIs_self() {
        return is_self;
    }

    public void setIs_self(int is_self) {
        this.is_self = is_self;
    }

    public String getThree_url() {
        return three_url;
    }

    public void setThree_url(String three_url) {
        this.three_url = three_url;
    }

    private List<String> pics;

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public int getIs_collect() {
        return is_collect;
    }

    public void setIs_collect(int is_collect) {
        this.is_collect = is_collect;
    }

    private List<DecPicBean.PicsEntity> album;

    public List<DecPicBean.PicsEntity> getAlbum() {
        return album;
    }

    public void setAlbum(List<DecPicBean.PicsEntity> album) {
        this.album = album;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGo_url() {
        return go_url;
    }

    public void setGo_url(String go_url) {
        this.go_url = go_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCate_name() {
        return cate_name;
    }

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getSources() {
        return sources;
    }

    public void setSources(String sources) {
        this.sources = sources;
    }

    public String getVisit() {
        return visit;
    }

    public void setVisit(String visit) {
        this.visit = visit;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<String> getPics() {
        return pics;
    }

    public void setPics(List<String> pics) {
        this.pics = pics;
    }

    public int getCont_type() {
        return cont_type;
    }

    public void setCont_type(int cont_type) {
        this.cont_type = cont_type;
    }

    @Override
    public int getItemType() {
        return type_id;
    }


    public InfoBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.groupId);
        dest.writeString(this.go_url);
        dest.writeString(this.title);
        dest.writeString(this.tags);
        dest.writeString(this.cate_name);
        dest.writeInt(this.type_id);
        dest.writeInt(this.cont_type);
        dest.writeString(this.thumb);
        dest.writeString(this.video);
        dest.writeString(this.sources);
        dest.writeString(this.visit);
        dest.writeString(this.comment);
        dest.writeString(this.summary);
        dest.writeString(this.create_time);
        dest.writeString(this.news_type);
        dest.writeString(this.duration);
        dest.writeString(this.topic_sign);
        dest.writeInt(this.is_collect);
        dest.writeInt(this.is_self);
        dest.writeString(this.three_url);
        dest.writeStringList(this.pics);
        dest.writeTypedList(this.album);
    }

    protected InfoBean(Parcel in) {
        this.id = in.readString();
        this.groupId = in.readString();
        this.go_url = in.readString();
        this.title = in.readString();
        this.tags = in.readString();
        this.cate_name = in.readString();
        this.type_id = in.readInt();
        this.cont_type = in.readInt();
        this.thumb = in.readString();
        this.video = in.readString();
        this.sources = in.readString();
        this.visit = in.readString();
        this.comment = in.readString();
        this.summary = in.readString();
        this.create_time = in.readString();
        this.news_type = in.readString();
        this.duration = in.readString();
        this.topic_sign = in.readString();
        this.is_collect = in.readInt();
        this.is_self = in.readInt();
        this.three_url = in.readString();
        this.pics = in.createStringArrayList();
        this.album = in.createTypedArrayList(DecPicBean.PicsEntity.CREATOR);
    }

    public static final Creator<InfoBean> CREATOR = new Creator<InfoBean>() {
        @Override
        public InfoBean createFromParcel(Parcel source) {
            return new InfoBean(source);
        }

        @Override
        public InfoBean[] newArray(int size) {
            return new InfoBean[size];
        }
    };
}
